<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">
    	<div class="layui-form-item">
            <label class="layui-form-label label-required-prev">客户编号</label>
            <div class="layui-input-block">                     
                <input name="customer_unique" disabled="disabled" required value='{$info.customer_unique|default=""}' placeholder="请输入客户编号" class="layui-input">                                          
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label label-required-prev">公司名</label>
            <div class="layui-input-block">                     
                <input name="company_name" disabled="disabled" required value='{$info.company_name|default=""}' placeholder="请输入公司名" class="layui-input">                                          
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required-prev">联系人姓名</label>
            <div class="layui-input-block">                     
                <input name="link_name"  required value='{$info.link_name|default=""}' placeholder="请输入联系人姓名" class="layui-input">                                          
            </div>
        </div>
             
        <div class="layui-form-item">
            <label class="layui-form-label label-required-prev">是否成交</label>
            <div class="layui-input-block">
            <select class="layui-select" name="transaction" lay-search required lay-filter="class">
            	<option value="">请选择是否成交</option>
                {foreach $transactions as $k=>$v}              
                {if (isset($info.transaction) and $info.transaction eq $k)}
	            <option selected value="{$k}">{$v}</option>
	            {else}
	            <option value="{$k}">{$v}</option>
	            {/if}
                {/foreach}
            </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required-prev">跟进时间</label>
            <div class="layui-input-block">                     
                <input data-date-input="" name="follow_at" value="{$info.follow_at|default=""}" required
                            placeholder="请选择跟进时间" 
                            class="layui-input" autocomplete="off">                                          
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">跟进内容</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea"  name="content" >{$info.content|default=''}</textarea>
            </div>
        </div>


    </div>

    <div class="hr-line-dashed"></div>
    <input type='hidden' value='{$customer_id}' name='customer_id'>
    {notempty name='info.id'}<input type='hidden' value='{$info.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button'  data-close>取消</button>
    </div>
    <script>
    	window.form.render();
	    require(['ckeditor', 'angular'], function () {
	        window.createEditor('[name="content"]', {height: 400});
	        var app = angular.module("GoodsForm", []).run(callback);
	        angular.bootstrap(document.getElementById(app.name), [app.name]);  
	      
	    })
    </script>
</form>
<script>

    
</script>
<style>
     .layui-form-selected dl{
        max-height: 780px;
    }
    .layui-card-body{
        height: 780px;
    }
</style>